package com.qianxing.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.qianxing.exceptionhandler.ResponseException;
import com.qianxing.po.AddMsgDTO;
import com.qianxing.po.TbMsgDataPO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author JasonLong
* @description 针对表【tb_msg_data(推文数据表)】的数据库操作Service
* @createDate 2023-07-09 22:13:05
*/
public interface TbMsgDataService extends IService<TbMsgDataPO> {

    public ResponseException queryAllData() throws JsonProcessingException;

    public ResponseException addMsg(AddMsgDTO addMsgDTO) throws InterruptedException;

    public ResponseException delMsg(String msgId);

    public ResponseException setCurrentMsgKey(String msgId,String userId);

    public ResponseException getCurrentMsg(String userId);

    default ResponseException test(){
        return ResponseException.success();
    }
}
